//
//  AppDelegate.swift
//  Space Experiment Module
//
//  Created by 曹亚索 on 2020/12/17.
//

import UIKit
import LeanCloud

@available(iOS 13.0, *)
@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        let appid = "qYF3C0j0uhBmzGU4d7Svsb9l-gzGzoHsz"
        let appkey = "OivJxe89s8TjmE71lK0eOlJb"
        let url = "https://qyf3c0j0.lc-cn-n1-shared.com"
        do {
            try LCApplication.default.set(
                id: appid,
                key: appkey,
                serverURL: url)
        } catch {
            print(error)
        }
        return true
    }
    
    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
    }

    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {}
    
}

